package models

import org.joda.time.DateTime

case class Organization(
                         orgName: String,
                         orgPath: String,
                         isDeleted: Boolean = false,
                         joinTime: Option[DateTime],
                         id: Option[Int],
                         orgAddress: Option[String] = None,
                         parentId: Option[String] = None,
                         updateTime: Option[DateTime] = None
                       ) extends BaseModel {
}

case class OrganizationQuery(
                              orgName: Option[String] = None,
                              orgPath: Option[String] = None,
                              isDeleted: Option[Boolean] = None,
                              joinTime: Option[DateTime] = None,
                              id: Option[Int] = None,
                              orgAddress: Option[String] = None,
                              parentId: Option[String] = None,
                              updateTime: Option[DateTime] = None,
                              page:Option[Int]=Some(1),
                              pageSize:Option[Int]=None
                            )
